| Get the address of a module using !DumpDomain |
| Step 1: List the modules loaded in the domain |
0:003> !dumpdomain
--------------------------------------
System Domain: 793abdb8
LowFrequencyHeap: 793abe1c
HighFrequencyHeap: 793abe70
StubHeap: 793abec4
Name:
Assembly: 001439c0 [mscorlib]
ClassLoader: 00143df8
Module Name
001440c0 f:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll
--------------------------------------
Shared Domain: 793ad1e8
LowFrequencyHeap: 793ad24c
HighFrequencyHeap: 793ad2a0
StubHeap: 793ad2f4
Assembly: 60296f38
...
Assembly: 60265478--------------------------------------
Domain 1: 13a2b8
LowFrequencyHeap: 0013a31c
HighFrequencyHeap: 0013a370
StubHeap: 0013a3c4
Name: basedebug.exe
Assembly: 0014c620 [basedebug]
ClassLoader: 0014c6f8
Module Name
0014ea50 G:\Projects\VC\basedebug\bin\Debug\basedebug.exe
| Notes: |
Review the output for the module you are looking for. You can
then use the DumpModule command with the corresponding address.
|
|
| Step 2: Dump the module information |
0:003> !dumpmodule 0014ea50
Name G:\Projects\VC\basedebug\bin\Debug\basedebug.exe
dwFlags 00003280
Attribute PEFile Edit&Continue
Assembly 0014c620
LoaderHeap* 0014ead8
TypeDefToMethodTableMap* 03150010
TypeRefToMethodTableMap* 0315001c
MethodDefToDescMap* 03150060
FieldDefToDescMap* 03150090
MemberRefToDescMap* 03150098
FileReferencesMap* 031500e0
AssemblyReferencesMap* 031500e4
MetaData starts at 00402204 (0x658 bytes)
|